package cug.xxs.jpa.domain;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.UUID;

@Entity
@Table(name = "tb_fault")
@Data
public class Fault implements Serializable {

    @Id
    private String id = UUID.randomUUID().toString();

    @Column(name = "fault_name")
    private String name;

    @Column(name = "fault_grid")
    private Short grid;

    @Column(name = "fault_sequence")
    private Integer sequence;

    @Column(name = "fault_interpretation_stuff")
    private String interpretationMan;

    @Temporal(value = TemporalType.DATE)
    @Column(name = "fault_interpretation_time")
    private Date interpretationTime;

    @ManyToOne
    private Model model;
}
